const mongoose = require("./db.js");

var CollectionSchema = mongoose.Schema({
    collectionid: String,//专题id
    uid: String,//创建者的uid
    uname: String,//创建者的昵称
    fileName: String,//专题的名称
    img: String,//专题logo
    fansList: Array,//关注uid列表
    listAid: Array,//文章aid列表
});

module.exports = mongoose.model('Collection', CollectionSchema, 'collection');